package com.level.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaocw
 * @since 2019-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("USER_LOG")
public class UserLog extends Model<UserLog> {

private static final long serialVersionUID=1L;

    @TableField("ID")
    private String id;

    /**
     * 用户名
     */
    @TableField("USERNAME")
    private String username;

    /**
     * 操作时间
     */
    @TableField("OPTTIME")
    private LocalDate opttime;

    @TableField("SESSIONID")
    private String sessionid;

    /**
     * 操作
     */
    @TableField("ACTION")
    private String action;

    /**
     * 访问的方法
     */
    @TableField("METHOD")
    private String method;

    /**
     * 创建时间
     */
    @TableField("CREATETIME")
    private LocalDate createtime;

    /**
     * ip
     */
    @TableField("IP")
    private String ip;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
